Release 10.1A: OpenEdge Development:
Progress 4GL Handbook
Publishing an event
Once there are one or more subscribers to an event, then a procedure can publish that event and each of the subscribers receives it. The publisher does not have to preregister the intention of publishing the event, even though the subscriber must register the intent to receive it. This is the syntax for the
PUBLISHstatement:
As with the
SUBSCRIBEstatement, the default is to publish the event from the procedure that contains thePUBLISHstatement. A procedure can also publish events on behalf of another procedure by including theFROMpublisher-handlephrase. Any subscriber that has subscribed to the event of the same name in thepublisher-handle, whether implicit, explicit, orANYWHERE, receives it.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |